package com.zatech.cgnci.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zatech.cgnci.project.entity.CgnciDirectInsuranceDO;
import com.zatech.cgnci.project.entity.CgnciDirectInsuranceRiskDO;
import com.zatech.cgnci.project.vo.CgnciDirectInsuranceVO;

/**
 * <p>
 * 直保信息表 服务类
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
public interface CgnciDirectInsuranceService extends IService<CgnciDirectInsuranceDO> {

    CgnciDirectInsuranceVO getDirectInsuranceByBusinessId(Long businessId);

    /**
     * 更新直保信息汇总字段
     *
     * @param insuranceRiskDO   直保险种
     * @param directInsuranceDO 直保信息
     * @param detailId          直保险种标的id
     */
    void updateDirectInsuranceColumn(CgnciDirectInsuranceRiskDO insuranceRiskDO, CgnciDirectInsuranceDO directInsuranceDO, Long detailId);
}
